#include "Face.h"

using namespace Ogre;

Face::Face(Ogre::Vector3 location)
{
	matNames[0] = "PipeCube0";
	iD = -1;

	std::stringstream sID;
	sID << iD;
	mFaceEntity = sceneMgr->createEntity("Face" + sID.str(), "plane.mesh");
	mFaceNode = sceneMgr->getRootSceneNode()->createChildSceneNode("Face" + sID.str() + "Node", location);
	mFaceNode->attachObject(mFaceEntity);
	mFaceNode->setScale(.09375f, .09375f, .09375f);

	/*
	v = vector<vector<int>> faceData ( 3, vector<bool> ( 3 ) );//is this right?
	
 
	for ( int i = 0; i < 3; i++ ) {
		for ( int j = 0; j < 3; j++ )
			faceData[i][j] = false;
	}
	*/
}

void Face::loadFaceMaterial(int matNum)
{
	mFaceEntity->setMaterialName(matNames[matNum]); 
	loadData(matNum);
}

void Face::loadData(int matNum)
{
	if(matNum == 0)
	{
		/*
		faceData[0][1] = true;
		faceData[1][2] = true;
		*/
	}
}